//
//  OrderCell.m
//  OrderSys
//
//  Created by JM on 15/10/11.
//  Copyright © 2015年 zjlskj. All rights reserved.
//

#import "OrderCell.h"

@implementation OrderCell
+ (NSString *)ID
{

    return @"OrderCell";
}

+ (instancetype)cell
{
    NSArray* nibs = [[NSBundle mainBundle] loadNibNamed:@"OrderCell" owner:nil options:nil];
    return [nibs firstObject];
}

- (IBAction)clickQiangDanBtn:(id)sender {
    if ([self.delegate respondsToSelector:@selector(clickQiangDan:)]){
        [self.delegate performSelector:@selector(clickQiangDan:) withObject:self];
    }
}

+ (NSInteger)height {
    return 140;
}

- (void)setOrder:(OrderModel *)aOrder {
    self.timeLabel.text = aOrder.date;
    self.adress.text = aOrder.adress;
    self.numberLabel.text = aOrder.number;
    self.priceLabel.text = aOrder.price;
}

@end
